<!doctype html>
<html lang="en" style="background:#ffffff;">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" href="../../css/aui.css">
    <link rel="stylesheet" href="../../css/normalUser.css">
    <script src="../../js/api.js"></script>
    <script src="../../js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="../../js/vue.min.js"></script>
    <script src="../../js/vue-resource.min.js"></script>
    <script src="../../js/aui-toast.js"></script>
    <script src="../../js/common.js" type="text/javascript" charset="utf-8"></script>
    <script>
		setToken();
        $(function () {
            var app = new Vue({
                el: '#app',
                data: {
                    goods: {},//我的账户
                    smaller: {},//我的积分
                    HuaBao : {},//我的华宝
                },
                mounted:function(){
                	this.$nextTick(function(){
                		this.myAccount();
                		this.scoreIndex();
                		this.myHuaBao();
                	})
                },
                methods:{
                	myAccount : function(){
                		this.$http.get(SURL+"app/Account/myAccount").then(function(res){
	                   			console.log(res.body.data)
	                   			this.goods = res.body.data;
	                		}).catch(function(req){
                			
                		});
                	},
                	scoreIndex : function(){
                		this.$http.get(SURL+"app/site/scoreIndex").then(function(res){
	                   			console.log(res.body.data)
	                   			this.smaller = res.body.data;
	                		}).catch(function(req){
                			
                		});
                	},
                	myHuaBao : function(){
                		this.$http.get(SURL+"app/account/myHuaBao").then(function(res){
	                   			console.log(res.body.data.account)
	                   			this.HuaBao = res.body.data.account;
	                		}).catch(function(req){
                			
                		});
                	},
                	
                }
            });

            $('.hm-bar').load('../../data/headerIndex.html');
            $('.footer').load('../../data/footer.html');


        })
    </script>
    <title>普通用户个人中心</title>
    
</head>
<body style="background:#ffffff;">
<div id="app">
   <div class="center-setting center-setting12">	
        个人中心
        <img src="../../img/setting.png" alt=""/>
    </div>

    <div class="center-img center-imgbg2">
        <div class="center-rz">
            <img class="center-img-tx" src="../../img/cImg.png" alt=""/>
            <div class="center-img-box">
                <img class="center-rz-1" src="../../img/gr2Icon.png" alt=""/>
                <img class="center-rz-2" src="../../img/zIcon.png" alt=""/>
                <img class="center-rz-3" src="../../img/j2Icon.png" alt=""/>
                <img class="center-rz-4" src="../../img/LP2Icon.png" alt=""/>
                <img class="center-rz-5" src="../../img/GP2Icon.png" alt=""/>
                <img class="center-rz-6" src="../../img/q2Icon.png" alt=""/>
            </div>
        </div>
        <img class="center-ewm" src="../../img/ewm3Icon.png" alt=""/>
    </div>
    <div class="center-order">
        <div class="center-order-box center-order-box2"  @click="location.href='../orderAndPay/myDingdan.html'">
            <img class="center-account-icon1" src="../../img/myOrder.png" alt=""/>
            <div class="font-base-28">我的订单</div>
            <div class="center-order-show font-base-22">查看全部订单</div>
            <img src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-order-other">
            <ul>
                <li><img src="../../img/wfk.png" alt=""/></li>
                <li class="font-base-24">待付款</li>
            </ul>
            <ul>
                <li><img src="../../img/dfhIcon.png" alt=""/></li>
                <li class="font-base-24">待发货</li>
            </ul>
            <ul>
                <li><img src="../../img/dpj.png" alt=""/></li>
                <li class="font-base-24">待评价</li>
            </ul>
            <ul>
                <li><img src="../../img/dsh.png" alt=""/></li>
                <li class="font-base-24">待收货</li>
            </ul>
            <ul>
                <li><img src="../../img/tk.png" alt=""/></li>
                <li class="font-base-24">退款/售后</li>
            </ul>
        </div>
    </div>
    <div class="center-account">
        <div class="center-account-public" @click="location.href='../normalUser/myAccount.html'">
            <img class="center-account-icon1" src="../../img/myAcc.png" alt=""/>
            <div class="font-base-28">我的账户</div>
            <div class="font-base-28 center-account-money">{{goods.cash}}</div>
            <img clas s="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public" @click="location.href='../normalUser/myCollect.html'">
            <img class="center-account-icon1" src="../../img/myJf.png" alt=""/>
            <div class="font-base-28">我的积分</div>
            <div class="font-base-28 center-account-money">{{smaller.score}}</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public" @click="location.href='../normalUser/wodehuabao.html'">
            <img class="center-account-icon1" src="../../img/myHb.png" alt=""/>
            <div class="font-base-28">我的华宝</div>
            <div class="font-base-28 center-account-money">{{HuaBao.kaiyuan}}</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public">
            <img class="center-account-icon1" src="../../img/user2.png" alt=""/>
            <div class="font-base-28">我的优惠券</div>
            <div class="font-base-28 center-account-money">共<span>4646</span>张优惠券</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
    </div>
    <div class="center-account center-bank">
        <div class="center-account-public" @click="location.href='../normalUser/yhsf.html'">
            <img class="center-account-icon1" src="../../img/rz.png" alt=""/>
            <div class="center-bank-txt font-base-28">身份认证</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public" @click="location.href='../normalUser/myBlank.html'">
            <img class="center-account-icon1" src="../../img/bank.png" alt=""/>
            <div class="center-bank-txt font-base-28">我的银行卡</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
    </div>
    <div class="center-account center-share">
        <div class="center-account-public" @click="location.href='../normalUser/share.html'">
            <img class="center-account-icon1" src="../../img/fx.png" alt=""/>
            <div class="center-bank-txt font-base-28">我的分享</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
        <div class="center-account-public">
            <img class="center-account-icon1" src="../../img/sc.png" alt=""/>
            <div class="center-bank-txt font-base-28">我的收藏</div>
            <img class="center-account-icon2" src="../../img/newGo.png" alt=""/>
        </div>
    </div>
</div>
</body>
</html>